import os.path

import pytest
from study.pytest.run import read_file

def add(self, a, b):
    return a + b
class Test_Add:
    # @pytest.mark.skipif(1==2,reason='test')
    # @pytest.mark.api
    # def test_add(self):
    #     res = add(1,2)
    #     assert  res == 3
    #
    # @pytest.mark.skip
    # def test_str(self):
    #     res  = add("1","2")
    #     assert res == "3"
    #
    # @pytest.mark.xfail
    # def test_list(self):
    #     res = add([1,2])
    #     assert res  == 4
    #
    # @pytest.mark.ddt
    # @pytest.mark.parametrize
    # def test_ddt(self,a,b,c):
    #     pass
    @pytest.mark.skip
    @pytest.mark.ddt
    @pytest.mark.smoke
    @pytest.mark.parametrize(
        "a,b,c",
        read_file(r"C:\Users\Vanthic Noeik\python_study\study\pytest\data.csv")
    )
    def read_data(self,a, b, c):
        add_data = int(a) + int(b)
        assert add_data == int(c)

    print(read_data)
    print(os.path.dirname(r'C:\Users\Vanthic Noeik\python_study\study\pytest\data.csv'))

